<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/admin_common.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/admin_main.css"/>
    <script type="text/javascript" src="__JS__/modernizr.min.js"></script>
    <script type="text/javascript" src="__JS__/jquery-1.8.0.min.js"></script>
</head>
<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <!-- <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1> -->
            <img style="height:50px;display:block;overflow:hidden;" src="__IMG__/logo_mall.jpg" alt="">
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <!-- <li><a href="#">管理员</a></li> -->
                <!-- <li><a href="#">修改密码</a></li> -->
                <li><a href="<?php echo U('Admin/Public/loginout');?>">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <!--<li>
                    <a href="<?php echo U('Admin/Index/index');?>"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="<?php echo U('Admin/Adminuser/index');?>">用户管理</a></li>
                        <li><a href="<?php echo U('Admin/Express/index');?>">物流商户管理</a></li>
                        <li><a href="<?php echo U('Admin/Goods/index');?>">商品列表</a></li>

                    </ul>
                </li>
                <li>
                    <a href="<?php echo U('Admin/Prize/index');?>"><i class="icon-font">&#xe003;</i>配送管理</a>
                    <ul class="sub-menu">
                        <li><a href="<?php echo U('Admin/Prize/unsend');?>">未配送管理</a></li>
                        <li><a href="<?php echo U('Admin/Prize/hassend');?>">已配送管理</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>结算管理</a>
                    <ul class="sub-menu">
                        <li><a href="<?php echo U('Admin/Prize/LTbalance');?>">联通已结算订单</a></li>
                        <li><a href="<?php echo U('Admin/Prize/WLbalance');?>">物流已结算订单</a></li>
                    </ul>
                </li>-->
                <?php foreach($menu['main'] as $k1=>$v1){ echo '<li>'; echo '<a href="'.$v1[url].'"><i class="icon-font">&#xe003;</i>'.$v1[title].'</a>'; if($menu['sub'][$k1]){ echo '<ul class="sub-menu">'; foreach($menu['sub'][$k1] as $k2=>$v2){ echo '<li><a href="'.$v2[url].'">'.$v2[title].'</a></li>'; } echo '</ul>'; } echo '</li>'; } ?>
            </ul>
        </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap">
    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font">&#xe06b;</i><span>欢迎使用网站管理后台</span></div>
    </div>
    <!-- <div class="result-wrap">
        <div class="result-title">
            <h1>快捷操作</h1>
        </div>
        <div class="result-content">
            <div class="short-wrap">
                <a href="#"><i class="icon-font">&#xe001;</i>新增作品</a>
                <a href="#"><i class="icon-font">&#xe005;</i>新增博文</a>
                <a href="#"><i class="icon-font">&#xe048;</i>新增作品分类</a>
                <a href="#"><i class="icon-font">&#xe041;</i>新增博客分类</a>
                <a href="#"><i class="icon-font">&#xe01e;</i>作品评论</a>
            </div>
        </div>
    </div> -->
    <div class="result-wrap">
        <div class="result-title">
            <h1>统计信息</h1>
        </div>
        <div class="result-content">
            <!-- <ul class="sys-info-list">
                <li>
                    <label class="res-lab">操作系统</label><span class="res-info"><?php echo PHP_OS; ?></span>
                </li>
                <li>
                    <label class="res-lab">运行环境</label><span class="res-info">Apache/2.2.21 (Win64) PHP/5.3.10</span>
                </li>
                <li>
                    <label class="res-lab">PHP运行方式</label><span class="res-info">apache2handler</span>
                </li>
                <li>
                    <label class="res-lab">后台版本</label><span class="res-info">v1.0</span>
                </li>
                <li>
                    <label class="res-lab">上传附件限制</label><span class="res-info">2M</span>
                </li>
                <li>
                    <label class="res-lab">北京时间</label><span class="res-info"><?php echo date('Y-m-d H:i:s',time()); ?></span>
                </li>
                <li>
                    <label class="res-lab">服务器域名/IP</label><span class="res-info"><?php echo $_SERVER["HTTP_HOST"]; ?></span>
                </li>
                <li>
                    <label class="res-lab">Host</label><span class="res-info"><?php echo $_SERVER["SERVER_ADDR"]; ?></span>
                </li>
            </ul> -->

            <div class="indexitem">
                <div class="title"><h3>商品统计信息</h3></div>
                <div class="body">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                            <tbody>      
                                <tr>
                                    <th><span>商品总数：</span></th>
                                    <td><span><a href="#" target="null" class="imp"><?php echo ($all['total']); ?></a>个</span></td>
                                </tr>
                                
                                <?php if(is_array($sort)): $k = 0; $__LIST__ = $sort;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
                                    <th><span><?php echo ($vo); ?>商品：</span></th>
                                    <td><span><a><?php echo ($all['sortTotal'][$k]); ?></a>个</span></td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>          
                                <tr>
                                    <td></td>
                                </tr>          
                            </tbody>            
                     </table>
                 </div>
            </div>

            <div class="indexitem">
                <div class="title"><h3>配送商品统计信息</h3></div>
                <div class="body">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                            <tbody>      
                                <tr>
                                    <th><span>商品总数：</span></th>
                                    <td>
                                        <span><a href="#" target="null" class="imp"><?php echo ($send['total']); ?></a>个</span>
                                        <span>￥<a><?php echo ($send['sum']); ?></a></span>
                                    </td>
                                </tr>
                                
                                <?php if(is_array($sort)): $k = 0; $__LIST__ = $sort;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
                                    <th><span><?php echo ($vo); ?>商品：</span></th>
                                    <td>
                                        <span><a><?php echo ($send['sortTotal'][$k]); ?></a>个</span>
                                        <span>￥<a><?php echo ($send['sortSum'][$k]); ?></a></span>
                                    </td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>          
                                <tr>
                                    <td></td>
                                </tr>          
                            </tbody>            
                     </table>
                 </div>
            </div>

            <div class="indexitem">
                <div class="title"><h3>本周配送商品统计信息</h3></div>
                <div class="body">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                            <tbody>      
                                <tr>
                                    <th><span>商品总数：</span></th>
                                    <td>
                                        <span><a href="#" target="null" class="imp"><?php echo ($aweek['total']); ?></a>个</span>
                                        <span>￥<a><?php echo ($aweek['sum']); ?></a></span>
                                    </td>
                                </tr>
                                
                                <?php if(is_array($sort)): $k = 0; $__LIST__ = $sort;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
                                    <th><span><?php echo ($vo); ?>商品：</span></th>
                                    <td>
                                        <span><a><?php echo ($aweek['sortTotal'][$k]); ?></a>个</span>
                                        <span>￥<a><?php echo ($aweek['sortSum'][$k]); ?></a></span>
                                    </td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>          
                                <tr>
                                    <td></td>
                                </tr>          
                            </tbody>            
                     </table>
                 </div>
            </div>

            <div class="indexitem">
                <div class="title"><h3>本季度配送商品统计信息</h3></div>
                <div class="body">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                            <tbody>      
                                <tr>
                                    <th><span>商品总数：</span></th>
                                    <td>
                                        <span><a href="#" target="null" class="imp"><?php echo ($aquarter['total']); ?></a>个</span>
                                        <span>￥<a><?php echo ($aquarter['sum']); ?></a></span>
                                    </td>
                                </tr>
                                
                                <?php if(is_array($sort)): $k = 0; $__LIST__ = $sort;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
                                    <th><span><?php echo ($vo); ?>商品：</span></th>
                                    <td>
                                        <span><a><?php echo ($aquarter['sortTotal'][$k]); ?></a>个</span>
                                        <span>￥<a><?php echo ($aquarter['sortSum'][$k]); ?></a></span>
                                    </td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>          
                                <tr>
                                    <td></td>
                                </tr>          
                            </tbody>            
                     </table>
                 </div>
            </div>

        </div>
    </div>

</div>
    <!--/main-->
</div>
</body>
</html>
<script type="text/javascript" src="__JS__/main.js"></script>